<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="en">
<head>
	<meta charset="UTF-8">
	<title>考试详情</title>
	
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
	<meta name="description" content="Responsive Admin &amp; Dashboard Template based on Bootstrap 5">
	<meta name="author" content="AdminKit">
	<meta name="keywords" content="adminkit, bootstrap, bootstrap 5, admin, dashboard, template, responsive, css, sass, html, theme, front-end, ui kit, web">
	
	<link rel="preconnect" href="https://fonts.gstatic.com">
	<link rel="shortcut icon" href="img/icons/icon-48x48.png" />
	
	<link rel="canonical" href="https://demo-basic.adminkit.io/pages-profile.html" />

	<link href="css/app.css" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&display=swap" rel="stylesheet">
	<!----<script src="js/app.js"></script>------>
	
</head>

<body>

<div class="wrapper">
		<nav id="sidebar" class="sidebar js-sidebar">
			<div class="sidebar-content js-simplebar">
				<a class="sidebar-brand">
	      <span class="align-middle">考试系统</span>
	    </a>
	
				<ul class="sidebar-nav">
					<li class="sidebar-header">
								导航栏
							</li>
					
					
							<li class="sidebar-item">
								<a class="sidebar-link" href="teacher.html" th:if="${usertype} eq '0'" >
					  <i class="align-middle" data-feather="user"></i> <span class="align-middle">个人主页</span>
					</a>
					<a class="sidebar-link" href="/personpage3" th:if="${usertype} eq '1'" >
					  <i class="align-middle" data-feather="user"></i> <span class="align-middle">个人主页</span>
					</a>
					<a class="sidebar-link" href="admin.html" th:if="${usertype} eq '2'" >
					  <i class="align-middle" data-feather="user"></i> <span class="align-middle">个人主页</span>
					</a>
							</li>
					
							<li class="sidebar-item">
								<a class="sidebar-link" href="/myexam">
					  <i class="align-middle" data-feather="check-square"></i> <span class="align-middle">考试主页</span>
					</a>
							</li>
					
							<li class="sidebar-item">
								<a class="sidebar-link" href="/class">
					  <i class="align-middle" data-feather="book"></i> <span class="align-middle">课程主页</span>
					</a>
							</li>
					
							<li class="sidebar-item">
								<a class="sidebar-link" href="/questionbankpage">
					  <i class="align-middle" data-feather="map"></i> <span class="align-middle">题库练习</span>
					</a>
							</li>
							<li class="sidebar-item" th:if="${usertype} eq '0'">
										<a class="sidebar-link" href="/AddExaminfo">
							  <i class="align-middle" data-feather="file"></i> <span class="align-middle">上传考试</span>
							</a>
									</li>
				</ul>
			</div>
		</nav>
	
		<div class="main">
			<nav class="navbar navbar-expand navbar-light navbar-bg">
				<a class="sidebar-toggle js-sidebar-toggle">
					<i class="hamburger align-self-center"></i>
				</a>
	
				<div class="navbar-collapse collapse">
					<ul class="navbar-nav navbar-align">
						<li class="nav-item dropdown">
							<a class="nav-icon dropdown-toggle d-inline-block d-sm-none" href="#" data-bs-toggle="dropdown">
								<i class="align-middle" data-feather="settings"></i>
							</a>
	
							<a class="nav-link dropdown-toggle d-none d-sm-inline-block" href="#" data-bs-toggle="dropdown">
								<i class="align-middle me-2" data-feather="feather"></i>
								<span th:if="${usertype} eq '0'">老师</span>
								<span th:if="${usertype} eq '1'">学生</span>
								<span th:if="${usertype} eq '2'">管理员</span>
								<img src="images/someicon/teacher.jpg" class="avatar img-fluid rounded me-1" alt="老师" th:if="${usertype} eq '0'"/> 
								<img src="images/someicon/student.jpg" class="avatar img-fluid rounded me-1" alt="学生" th:if="${usertype} eq '1'"/> 
								<img src="images/someicon/admin.jpg" class="avatar img-fluid rounded me-1" alt="管理员" th:if="${usertype} eq '2'"/> 
								<span class="text-dark" th:text="${usermail}"></span>
							</a>
							<div class="dropdown-menu dropdown-menu-end">
								<a class="dropdown-item" href="teacherinfoupdate" th:if="${usertype} eq '0'"><i class="align-middle me-1" data-feather="user"></i> 修改信息</a>
								<a class="dropdown-item" href="/newstudentInformation" th:if="${usertype} eq '1'"><i class="align-middle me-1" data-feather="user"></i>  修改信息</a>
								<a class="dropdown-item" href="admininfoupdate" th:if="${usertype} eq '2'"><i class="align-middle me-1" data-feather="user"></i>  修改信息</a>
								<div class="dropdown-divider"></div>
								<a class="dropdown-item" href="logout">Log out</a>
							</div>
						</li>
					</ul>
				</div>
			</nav>

		
			<!--主要内容栏--->			
			<main class="content">
				<div class="container-fluid p-0">

					<h1 class="h3 mb-3">考试详情</h1>
					<p><font color="orange">如发现某场考试状态不符请点击查看这场考试详情进行状态刷新</font></p>
						<div class="col-12">
							<div th:if="${usertype} eq '0'">
							<div class="card" th:if="${not #lists.isEmpty(finish)}">
								<div class="card-header">
									<h5 class="card-title mb-0">待批改的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${finish}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
															<button type="submit" class="btn btn-primary">查看</button>
															<input type="hidden" name="examid" th:value="${i.id}">
															<div th:each="j:${Classinfo}">
																<input type="hidden" name="classid" th:value="${j.classid}">
															</div>
														</form>
													</form>	
												</td>
											</tr>
										</tbody>
									</table>
							</div>
							
							<div class="card" th:if="${not #lists.isEmpty(fail)}">
								<div class="card-header">
									<h5 class="card-title mb-0">审核未通过的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${fail}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>
							
							<div class="card" th:if="${not #lists.isEmpty(checkin)}">
								<div class="card-header">
									<h5 class="card-title mb-0">签到中的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${checkin}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>
							
							<div class="card" th:if="${not #lists.isEmpty(examing)}">
								<div class="card-header">
									<h5 class="card-title mb-0">正在考试的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${examing}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>

							<div class="card" th:if="${not #lists.isEmpty(corrected)}">
								<div class="card-header">
									<h5 class="card-title mb-0">批改过的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${corrected}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>
							
							<div class="card" th:if="${not #lists.isEmpty(notbegin)}">
								<div class="card-header">
									<h5 class="card-title mb-0">未开始的考试</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${notbegin}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>
						
							<div class="card" th:if="${not #lists.isEmpty(notcheck)}">
								<div class="card-header">
									<h5 class="card-title mb-0">待审核</h5>
								</div>
									<table class="table" >	
						    			<thead>
						      				<tr>
												<th>考试id</th>
						        				<th>开始时间</th>
												<th>结束时间</th>
												<th>科目</th>
												<th>满分</th>
												<th>查看详情</th>
											</tr>
						    			</thead>
										<tbody>
											<tr th:each="i:${notcheck}">
												<td th:text="${i.id}"></td>
												<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
												<td th:text="${i.subject}"></td>
												<td th:text="${i.totalpoint}"></td>
												<td>
													<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</td>
											</tr>
										</tbody>
									</table>
							</div>
							</div>
							
							<div th:if="${usertype} eq '2'">
								<div class="card">
									<div class="card-header">
										<h5 class="card-title">筛选审核状态</h5>
										<h6 class="card-subtitle text-muted">默认情况下首页显示为“未审核”状态下的考试。</h6>
									</div>
									<center>
									<div class="card-subtitle text-muted">
										<p th:if="${state} eq '0'">未审核</p>
										<p th:if="${state} eq '1'">未开始</p>
										<p th:if="${state} eq '2'">进行中</p>
										<p th:if="${state} eq '3'">未批改</p>
										<p th:if="${state} eq '4'">已批改</p>
										<p th:if="${state} eq '5'">签到中</p>
										<p th:if="${state} eq '6'">驳回</p>
										<form action="/myexam" enctype='multipart/form-data' method='POST'>
											<input type="radio" name="state" value=0> 未审核
											<input type="radio" name="state" value=1> 未开始
											<input type="radio" name="state" value=2> 进行中
											<input type="radio" name="state" value=3> 未批改
											<input type="radio" name="state" value=4> 已批改
											<input type="radio" name="state" value=5> 签到中
											<input type="radio" name="state" value=6> 驳回
											<button type="submit" name="taskid_index" class="badge bg-primary me-1 my-1">按类型筛选</button>  
										</form>
									</div>
									</center>
								</div>
								
								<div class="card">
								<table class="table" >
					    <thead>
					      	<tr>
								<th>考试id</th>
					        	<th>开始时间</th>
								<th>结束时间</th>
								<th>科目</th>
								<th>满分</th>
								<th>发布老师邮箱</th>
								<th>查看详情</th>
							</tr>
					    </thead>
						<tbody>
							<tr th:each="i:${thisstate}">
								<td th:text="${i.id}"></td>
								<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
								<td th:text="${#dates.format(i.endtime, 'yyyy-MM-dd HH:mm')}"></td>
								<td th:text="${i.subject}"></td>
								<td th:text="${i.totalpoint}"></td>
								<td th:text="${i.email}"></td>
								<td>
									<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
										<button type="submit" class="btn btn-primary">查看</button>
										<input type="hidden" name="examid" th:value="${i.id}">
										<div th:each="j:${Classinfo}">
											<input type="hidden" name="classid" th:value="${j.classid}">
										</div>
									</form>
								</td>
							</tr>
						</tbody>
					</table>	
								</div>
								
							</div>
							
							<div th:if="${usertype} eq '1'">
								<div class="card" th:if="${not #lists.isEmpty(checkinginexaminfo)} and ${not #lists.isEmpty(checkinginexam)}">
									<div class="card-header">
										<h5 class="card-title">正在签到的考试</h5>
									</div>
									<table class="table" >	
									<thead>
						      			<tr>
											<th>考试id</th>
								        	<th>开始时间</th>
											<th>科目</th>
											<th>满分</th>
											<th>发布考试老师邮箱</th>
						        			<th>状态</th>
						        			<th>查看详情</th>
										</tr>
								    </thead>
									<tbody>
										<tr th:each="i:${checkinginexaminfo}">
											<td th:text="${i.id}"></td>
											<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
											<td th:text="${i.subject}"></td>
											<td th:text="${i.totalpoint}"></td>
											<td th:text="${i.email}"></td>
											<td>签到中</td>
											<td>
												<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
												</form>	
											</td>
										</tr>
									</tbody>
									</table>
								</div>
								
								<div class="card" th:if="${not #lists.isEmpty(notbeginexaminfo)} and ${not #lists.isEmpty(notbeginexam)}">
									<div class="card-header">
										<h5 class="card-title">还没开始的考试</h5>
									</div>
									<table class="table" >	
									<thead>
						      			<tr>
											<th>考试id</th>
								        	<th>开始时间</th>
											<th>科目</th>
											<th>满分</th>
											<th>发布考试老师邮箱</th>
						        			<th>状态</th>
						        			<th>查看详情</th>
										</tr>
								    </thead>
									<tbody>
										<tr th:each="i:${notbeginexaminfo}">
											<td th:text="${i.id}"></td>
											<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
											<td th:text="${i.subject}"></td>
											<td th:text="${i.totalpoint}"></td>
											<td th:text="${i.email}"></td>
											<td>未开始</td>
											<td>
												<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
												</form>	
											</td>
										</tr>
									</tbody>
									</table>
								</div>
								
								<div class="card" th:if="${not #lists.isEmpty(finishedexaminfo)} and ${not #lists.isEmpty(finishedexam)}">
									<div class="card-header">
										<h5 class="card-title">考完没批完的考试</h5>
									</div>
									<table class="table" >	
									<thead>
						      			<tr>
											<th>考试id</th>
								        	<th>开始时间</th>
											<th>科目</th>
											<th>满分</th>
											<th>发布考试老师邮箱</th>
						        			<th>状态</th>
						      				<th>当前分数</th>
						        			<th>查看详情</th>
										</tr>
								    </thead>
									<tbody>
										<tr th:each="i:${finishedexaminfo}">
											<td th:text="${i.id}"></td>
											<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
											<td th:text="${i.subject}"></td>
											<td th:text="${i.totalpoint}"></td>
											<td th:text="${i.email}"></td>
											<td>未批改</td>
											<td th:text="${finishedexam[iStat.index].totalpoint}"></td>
											<td>
												<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</form>	
											</td>
										</tr>
									</tbody>
									</table>
								</div>
																
								<div class="card" th:if="${not #lists.isEmpty(correctededexaminfo)} and ${not #lists.isEmpty(correctededexam)}">
									<div class="card-header">
										<h5 class="card-title">考完批完的考试</h5>
									</div>
									<table class="table" >	
									<thead>
						      			<tr>
											<th>考试id</th>
								        	<th>开始时间</th>
											<th>科目</th>
											<th>满分</th>
											<th>发布考试老师邮箱</th>
						        			<th>状态</th>
						      				<th>试卷总分</th>
						        			<th>查看详情</th>
										</tr>
								    </thead>
									<tbody>
										<tr th:each="i:${correctededexaminfo}">
											<td th:text="${i.id}"></td>
											<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
											<td th:text="${i.subject}"></td>
											<td th:text="${i.totalpoint}"></td>
											<td th:text="${i.email}"></td>
											<td>考完</td>
											<td th:text="${correctededexam[iStat.index].totalpoint}"></td>
											<td>
												<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</form>	
											</td>
										</tr>
									</tbody>
									</table>
								</div>
								
								<div class="card" th:if="${not #lists.isEmpty(absentexaminfo)} and ${not #lists.isEmpty(absentexam)}">
									<div class="card-header">
										<h5 class="card-title">缺考的考试</h5>
									</div>
									<table class="table" >	
									<thead>
						      			<tr>
											<th>考试id</th>
								        	<th>开始时间</th>
											<th>科目</th>
											<th>满分</th>
											<th>发布考试老师邮箱</th>
						        			<th>状态</th>
						        			<th>查看详情</th>
										</tr>
								    </thead>
									<tbody>
										<tr th:each="i:${absentexaminfo}">
											<td th:text="${i.id}"></td>
											<td th:text="${#dates.format(i.starttime, 'yyyy-MM-dd HH:mm')}"></td>
											<td th:text="${i.subject}"></td>
											<td th:text="${i.totalpoint}"></td>
											<td th:text="${i.email}"></td>
											<td>缺考</td>
											<td>
												<form class="form-horizontal" action="/Examdetail" enctype='multipart/form-data' method='POST'>
														<button type="submit" class="btn btn-primary">查看</button>
														<input type="hidden" name="examid" th:value="${i.id}">
														<div th:each="j:${Classinfo}">
															<input type="hidden" name="classid" th:value="${j.classid}">
														</div>
													</form>
												</form>	
											</td>
										</tr>
									</tbody>
									</table>
								</div>
							</div>
						</div>
					</div>

					</div>
				
			</main>
		</div>
</div>

<script src="js/app.js"></script>





</body>
</html>